using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations;

namespace DemoApp.DataAccess 
{
  public partial class SecurableActionEntityConfiguration 
    : EntityTypeConfiguration<SecurableAction>
  {
    public SecurableActionEntityConfiguration()
    {
      HasEntitySetName(@"SecurableActions");
      Map(map => {
        map.ToTable(@"SecurableActions");
      });
      HasKey(e => new { e.SecurableActionId });
 

      Property(e => e.SecurableActionId) 
        .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);

      Property(e => e.Name) 
        .HasMaxLength(60);
 
    }
  }
}
